hvm: Fix some bugs in mmio decoder
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Fri, 13 Apr 2007 11:30:04 +0000 (12:30 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Fri, 13 Apr 2007 11:30:04 +0000 (12:30 +0100)
commit266760426a982e496cf934d537ffdc2bea65ddcd
tree461059730d8539d32531f8af88a0ac402c492899
parent20a553aca304db5009e552ffaa5ce42e395ecd2e
hvm: Fix some bugs in mmio decoder

Some instructions, like "add $imm8, r/m16"/"MOV $imm32, r/m64" require
the src immediate operand be sign-extented befere the op is executed,
but this is omitted in the current Xcode. The patch fixes this.
The patch also fixes an issue in handling address-size override
prefix, and fixes an issue in get_immediate().

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
xen/arch/x86/hvm/platform.c